import os
import sys

# 正则规则文件路径
REGEX_FILE_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "instruction/regex_config/regex_rules.json")

# 正则规则文件夹路径
REGEX_FOLDER_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "instruction/regex_config")

# 卡车2id文件路径
TRUCK2ID_FILE_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "instruction/truck2ID/truck2id.json")

# 指令编号
INSTRUCTIONS = ["1", "2", "3", "4", "6"]

# 默认性格
DEFAULT_CHARACTER = "总是以积极的态度与用户交流，擅长用简单易懂的语言解释复杂问题。"

# 默认昵称
DEFAULT_NICKNAME = "Mars"

# 地点信息json文件路径
LOCATION_FILE_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "instruction/location.json")

# 鉴权秘钥
SECRET_KEY = "MarsXChat"

# 用于校验token的算法
ALGORITHM = "HS256"

# 职业与知识库映射
OCCUPATION_MAPPING = {
    "律师": "Lawyer",
    "情感专家": "EmotionalExpert"
}

# 百炼API Key
DASHSCOPE_API_KEY = "sk-61f99c824c3e4930a93d1678a49e5df4"

# 【MarsX与自己没有职业的宠物对话】百炼平台APPID
CHAT_WITH_OWN_PET_NO_OCCUPATION_APPID = "8ecd761553e24a0993ec9add0bf157a8"

# 【MarsX与自己有职业的宠物对话】百炼平台APPID
CHAT_WITH_OWN_PET_WITH_OCCUPATION_APPID = "92b15c8256874f91aeb452795e825916"

# 【MarsX】智能体训练总结专用APPID
TRAIN_SUMMARY_APPID = "851c1d185be34aac8a5f682168d491f2"

# 【MarsX与全运会乐融融对话】百炼平台APPID
CHAT_WITH_LERONGROU_APPID = "ce79cdb0c7614da2b52daca6d00fe60e"

# 【MarsX与全运会喜洋洋对话】百炼平台APPID
CHAT_WITH_XIYANGYANG_APPID = "f6cd9fe81df14034a86d8fd6bc9fd1a8"

# 【MarsX与奥运电竞橙熊猫pandy对话】百炼平台APPID
CHAT_WITH_PANDY_APPID = "3084a8d00cc74f1f9fb65696fe5b3c92"

# 【MarsX与奥运电竞白熊猫pando对话】百炼平台APPID
CHAT_WITH_PANDO_APPID = "20945865682f4e11a0abf71ea63b07a4"

# 【MarsX与普通星星对话】百炼平台APPID
CHAT_WITH_XINGXING_APPID = "1b63374b9e14403a9bd1b43978341c83"

# 【MarsX与律师星星对话】百炼平台APPID
CHAT_WITH_LAWYER_XINGXING_APPID = "459beeee3699435bbefbfa1fc4c2b594"

# 【MarsX与普通火火对话】百炼平台APPID
CHAT_WITH_HUOHUO_APPID = "dab006ec9c2a4f5aaef0b96bb59a6c9e"

# 【MarsX与情感专家火火对话】百炼平台APPID
CHAT_WITH_EMOTION_HUOHUO_APPID = "4361cd18c4c2444e897005184eac85d9"

# 【MarsX与牡丹Helen对话】百炼平台APPID
CHAT_WITH_MUDAN_HELLEN_APPID = "15757f9d48a741a180623ac189d8ea91"

# 【MarsX AI对话意图识别 | 判断用户是否有意图】百炼平台APPID
MARSX_INTENT_RECOGNITION_APPID = "53418059dd0f42d58faea1bb2b30c15d"

# 【MarsX生成律师每日报告】百炼平台APPID
GENERATE_LAWYER_REPORT_APPID = "3bb6ba693d334ed29eeedec03585d5e2"

# 【MarsX生成情感专家每日报告】百炼平台APPID
GENERATE_EMOTION_REPORT_APPID = "b3d5272adf4a4ea395b4685b401a943e"

# 【MarsX】业务空间ID
WORKSPACE_ID = "llm-3fbmrzfrlsgqcpf2"

# 【MarsX】AccessKeyId
ACCESS_KEY_ID="LTAI5tFTpZXYZMVFcD2G8fBb"

# 【MarsX】AccessKeySecret
ACCESS_KEY_SECRET="kVYyScUZ5lQ4p36aU6unkJ3i2d6QJL"

# 流式返回时间间隔
STREAM_RETURN_INTERVAL = 0.1